import request from '@/utils/request'

// 查询运营管理招商引资列表
export function listInvestment(query) {
    return request({
        url: '/server/investment/list',
        method: 'get',
        params: query
    })
}

// 查询运营管理招商引资详细
export function getInvestment(investmentId) {
    return request({
        url: '/server/investment/' + investmentId,
        method: 'get'
    })
}

// 新增运营管理招商引资
export function addInvestment(data) {
    return request({
        url: '/server/investment',
        method: 'post',
        data: data
    })
}

// 修改运营管理招商引资
export function updateInvestment(data) {
    return request({
        url: '/server/investment',
        method: 'put',
        data: data
    })
}

// 删除运营管理招商引资
export function delInvestment(investmentId) {
    return request({
        url: '/server/investment/' + investmentId,
        method: 'delete'
    })
}

// 导出运营管理招商引资
export function exportInvestment(query) {
    return request({
        url: '/server/investment/export',
        method: 'get',
        params: query
    })
}
